package com.fly.lambda.framework.web.session;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by Fly on 2016/7/19.
 */
public interface SessionManage {

    public static final String COOKIE_SESSION_NAME = "ACCOUNT_COOKIE";      //账号session的cookie名称

    public String setAccountSession(HttpServletResponse response, AccountSession accountSession);

    public AccountSession getAccountSession(HttpServletRequest request);

    public void updateAccountSession(HttpServletResponse response, String sessionId);

    public void removeAccountSession(HttpServletResponse response);

}
